package com.zdb;

import java.time.*;
import java.util.Date;

public class MAIN1 {
    public static void main(String[] args) {
//        Clock clock = Clock.systemDefaultZone();
//        System.out.println(clock.millis());
//        Instant instant = clock.instant();
//        Date from = Date.from(instant);
//        System.out.println(from);
        System.out.println(ZoneId.getAvailableZoneIds());
        ZoneId zoneId = ZoneId.of("Asia/Shanghai");
        System.out.println(zoneId.getRules());
        LocalTime now = LocalTime.now();
        System.out.println(now);
        LocalDate now1 = LocalDate.now();
        System.out.println(now1);
    }
}
